package com.zengzhuo.mutithread.basic.create;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * TODO
 *  创建一个空线程
 * @author zhuo.zeng
 * @version 1.0
 * @date 2021/9/23 8:56
 */

public class EmptyThreadDemo132 {

    private static Logger logger = LoggerFactory.getLogger(EmptyThreadDemo132.class);

    public static void main(String[] args) {
        //使用Thread类创建和启动线程
        Thread thread = new Thread();
        logger.info("线程名称:{}",thread.getName());
        logger.info("线程ID：{}",thread.getId());
        logger.info("线程状态:{}",thread.getState());
        logger.info("线程优先级:{}",thread.getPriority());
        logger.info("{}运行结束",Thread.currentThread().getName());
        thread.start();
    }
}
